package com.ocgs.base.core.constant;

/**
 * @author Tang Bin Benoit
 * @version 1.0
 * @since 2012-05-14
 */
public class BaseConstants {

	public static interface Scop {
		public static final String REQUEST = "request";
		public static final String SESSION = "session";
		public static final String APPLICATION = "application";
	}
	public static final String DATETIME_FORMAT = "dd/MM/yyyy HH:mm:ss";
	public static final String DATETIME_FORMAT_DDMMYYYY = "dd/MM/yyyy";
	public static final String LOGIN_USER_ID = "LOGIN_USER_ID";
	public static final String LOGIN_USER_TYPE = "LOGIN_USER_TYPE";
	public static final String LOGIN_NAME = "LOGIN_NAME";
	public static final String USER = "USER";
	// add by Li XingXing
	public static final String STRING_ONE_SPACE = " ";

	public static final String SORT_FLAG_ASC = "ASC";
	public static final String SORT_FLAG_DESC = "DESC";

    public static final String ACTION_RESULT_INSERT = "insert";
    public static final String ACTION_RESULT_PUTIN = "putIn";
    public static final String ACTION_RESULT_REMOVAL = "removal";
    public static final String ACTION_RESULT_UPDATE = "update";
    public static final String ACTION_RESULT_SEARCH = "search";
    public static final String ACTION_RESULT_IN_OUT_SEARCH = "inOutSearch";
    public static final String ERROR_CODE = "ErrorCodes.properties";

    public static final String MESSAGE_NO_SEARCH_RESULT = "message.no.search.result";
    public static final String MESSAGE_ADD_SUCCESSFUL = "message.add.successful";
    public static final String MESSAGE_UPDATE_SUCCESSFUL = "message.update.successful";
    public static final String MESSAGE_DELETE_SUCCESSFUL = "message.delete.successful";
    public static final String MESSAGE_PUTIN_SUCCESSFUL = "message.put.in.successful";
    public static final String MESSAGE_REMOVAL_SUCCESSFUL = "message.removal.successful";
    public static final String MESSAGE_NO_RECORD_FOUND = "message.no.record.found";

    public static final String DELETE_STATUS = "D";
    public static final String ACTIVE_STATUS = "A";
    public static final String NO_STORAGE_STATUS = "O";

    public static interface CodeType{
        public static final String CODE_TYPE_BRAND = "1";
        public static final String CODE_TYPE_CATEGORY = "2";
        public static final String CODE_TYPE_MEASURE = "3";
        public static final String CODE_TYPE_CITY = "4";
        public static final String CODE_TYPE_MUNICIPIO = "5";
        public static final String CODE_TYPE_TOWN = "6";
        public static final String CODE_TYPE_VILLAGE = "7";
    }
}
